Weekday
Definition:
Weekday(date[, firstdayofweek])
Description:
Return the day of the week as an integer from a supplied date string.
Platforms:
All
Parameters:
date - required
String containing the date or date and time.
Supported formats for this parameter are the same as those supported by VBScript DateTime objects.
firstdayofweek - optional
Number specifying the first day of the week.
Possible values are:
0 - Use system settings (NLS API system setting)
1 - Sunday (default)
2 - Monday
3 - Tuesday
4 - Wednesday
5 - Thursday
6 - Friday
7 - Saturday
Returns:
int
The day of the week from the supplied date string, between 1 and 7.
Notes:
If you want to use the current date and time, you can use the Now Method to obtain this in a suitable format for use within this Method.